

<?
//获取nav-itemed，控制侧边栏展开

if($_REQUEST['nav-itemed']=="member")
{$navi_member="layui-nav-itemed";}

if($_REQUEST['nav-itemed']=="department")
{$navi_department="layui-nav-itemed";}

if($_REQUEST['nav-itemed']=="employee")
{$navi_employee="layui-nav-itemed";}

if($_REQUEST['nav-itemed']=="finance")
{$navi_finance="layui-nav-itemed";}

if($_REQUEST['nav-itemed']=="equipment")
{$navi_equipment="layui-nav-itemed";}


if($_REQUEST['nav-itemed']=="receipt")
{$navi_receipt="layui-nav-itemed";}


if($_REQUEST['nav-itemed']=="material")
{$navi_material="layui-nav-itemed";}

if($_REQUEST['nav-itemed']=="course")
{$navi_course="layui-nav-itemed";}


if($_REQUEST['nav-itemed']=="order")
{$navi_order="layui-nav-itemed";}


if($_REQUEST['nav-itemed']=="meun")
{$navi_order="layui-nav-itemed";}

?>











<ul class="layui-nav layui-nav-tree left_area" >
  <li class="layui-nav-item">

    <a href="<?echo $domain?>/controlbase/employee/detail-list.php?nav-itemed=employee"><i class="layui-icon">&#xe612;</i>会员管理</a>
  </li>

<li class="layui-nav-item <?echo $navi_order ?>">

  <a href="javascript:;"><i class="layui-icon">&#xe657;</i>订单管理</a>
  <dl class="layui-nav-child">
<dd> <a href="<?echo $domain?>/controlbase/order/detail-list.php?nav-itemed=order">订单列表</a></dd>
<dd> <a href="<?echo $domain?>/controlbase/order/list.php?nav-itemed=order&today=yes">订单明细</a></dd>
<dd> <a href="<?echo $domain?>/controlbase/order/collect.php?nav-itemed=order&today=yes">订单汇总</a></dd>


  </dl>





</li>

<li class="layui-nav-item"><a href="<?echo $domain?>/controlbase/menu/detail-list.php?nav-itemed=menu"><i class="layui-icon">&#xe60a;</i>菜单管理</a></li>

<li class="layui-nav-item"><a href="<?echo $domain?>/controlbase/check_order/index.php" target="_blank"><i class="layui-icon">&#xe629;</i>领餐管理</a></li>

<li class="layui-nav-item"><a href="<?echo $domain?>/controlbase/coresection/logout.php"><i class="layui-icon">&#xe620;</i>退出登录</a></li>
</ul>









<div style="height: 100%;overflow-y: auto;">
<style>
  #sidebar .layui-nav {
    margin-bottom: 300px;
  }
</style>

<ul class="layui-nav layui-nav-tree" >
<!-- 侧边导航: <ul class="layui-nav layui-nav-tree layui-nav-side"> -->

<? $quanxian=explode(",",$_SESSION['quanxian']);?>



<?if(in_array("member",$quanxian)){?>

  <li class="layui-nav-item <?echo $navi_member ?>">
    <a href="javascript:;"><i class="layui-icon">&#xe612;</i>学员管理</a>
    <dl class="layui-nav-child">
      <dd><a href="<?echo $domain?>/controlbase/member/detail-add.php?nav-itemed=member">学员报名</a></dd>
      <dd><a href="<?echo $domain?>/controlbase/member/detail-list.php?nav-itemed=member">学员列表</a></dd>



<?if(in_array("member-statics",$quanxian)){?>
      <dd><a href="<?echo $domain?>/controlbase/member/collect.php?nav-itemed=member">招生汇总</a></dd>
      <dd><a href="<?echo $domain?>/controlbase/member/list.php?nav-itemed=member">招生明细</a></dd>

  <dd><a href="<?echo $domain?>/controlbase/member/agent-collect.php?nav-itemed=member">介绍人明细</a></dd>
<?;}?>









    </dl>
  </li>

<?
;}
?>





  <?if(in_array("course",$quanxian)){?>






    <li class="layui-nav-item <?echo $navi_course ?>">
      <a href="javascript:;"><i class="layui-icon">&#xe637;</i>学习管理</a>
      <dl class="layui-nav-child">
        <dd>
<a href="<?echo $domain?>/controlbase/course/detail-list.php?nav-itemed=course">课程管理</a></dd>

        <dd><a href="<?echo $domain?>/controlbase/exam/detail-list.php?nav-itemed=course">考试信息</a></dd>
        <dd><a href="<?echo $domain?>/controlbase/exam/collect.php?nav-itemed=course">考试汇总</a></dd>

      </dl>
    </li>








    <?;} ?>





  <?if(in_array("finance",$quanxian)){?>
    <li class="layui-nav-item <?echo $navi_finance ?>">
    <a href="javascript:;"><i class="layui-icon">&#xe629;</i>财务管理</a>
    <dl class="layui-nav-child">
      <dd><a href="<?echo $domain?>/controlbase/finance/detail-list.php?nav-itemed=finance">统计信息</a></dd>
      <dd><a href="<?echo $domain?>/controlbase/finance/detail-add.php?nav-itemed=finance">新增收支</a></dd>

      <dd><a href="<?echo $domain?>/controlbase/finance/list.php?nav-itemed=finance">财务明细</a></dd>


    </dl>
  </li>
    <?;} ?>









  <?if(in_array("receipt",$quanxian)){?>

  <li class="layui-nav-item <?echo $navi_receipt?>">



    <a href="javascript:;"><i class="layui-icon">&#xe60a;</i>票据管理</a>
    <dl class="layui-nav-child">
      <dd> <a href="<?echo $domain?>/controlbase/receipt/detail-list.php?nav-itemed=receipt">收据记录</a></dd>
      <dd><a href="<?echo $domain?>/controlbase/receipt/collect.php?nav-itemed=receipt">收据汇总</a></dd>
      <dd><a href="<?echo $domain?>/controlbase/receipt/list.php?nav-itemed=receipt">收据明细</a></dd>
      <dd><a href="<?echo $domain?>/controlbase/receipt/detail.php?nav-itemed=receipt">个人明细</a></dd>
    </dl>

  </li>


    <?;} ?>

















<?if(in_array("employee",$quanxian)){?>
<li class="layui-nav-item <?echo $navi_employee ?>">
<a href="<?echo $domain?>/controlbase/employee/detail-list.php?nav-itemed=employee"><i class="layui-icon">&#xe613;</i>员工管理</a>
</li>
<?;} ?>








  <?if(in_array("equipment",$quanxian)){?>
<li class="layui-nav-item <?echo $navi_equipment ?>">
  <a href="javascript:;"><i class="layui-icon">&#xe614;</i>车辆管理</a>

  <dl class="layui-nav-child">
    <dd><a href="<?echo $domain?>/controlbase/equipment/detail-list.php?nav-itemed=equipment">车辆列表</a></dd>
    <dd><a href="<?echo $domain?>/controlbase/rental/detail-list.php?nav-itemed=equipment">领取记录</a></dd>
    <dd><a href="<?echo $domain?>/controlbase/repair/detail-list.php?nav-itemed=equipment">维修记录</a></dd>
    <dd><a href="<?echo $domain?>/controlbase/ticket/detail-list.php?nav-itemed=equipment">罚单记录</a></dd>
    <dd><a href="<?echo $domain?>/controlbase/refueling/detail-list.php?nav-itemed=equipment">加油记录</a></dd>
  </dl>

</li>
<?;} ?>



  <?if(in_array("department",$quanxian)){?>
<li class="layui-nav-item <?echo $navi_department ?>">
<a href="<?echo $domain?>/controlbase/department/detail-list.php?nav-itemed=department"><i class="layui-icon">&#xe622;</i>部门管理</a>
</li>
      <?;} ?>




  <?if(in_array("material",$quanxian)){?>
    <li class="layui-nav-item <?echo $navi_material ?>">
      <a href="javascript:;"><i class="layui-icon">&#xe614;</i>仓储管理</a>

      <dl class="layui-nav-child">
        <dd><a href="<?echo $domain?>/controlbase/material/detail-list.php?nav-itemed=material">物料清单</a></dd>
        <dd><a href="<?echo $domain?>/controlbase/inventory/detail-list.php?nav-itemed=material">进销存管理</a></dd>
      </dl>

    </li>
      <?;} ?>






  <?if(
    (in_array("member",$quanxian))||
    (in_array("course",$quanxian))||
    (in_array("exam",$quanxian))
    )
  {?>

    <li class="layui-nav-item <?echo $navi_import ?>">
      <a href="<?echo $domain?>/controlbase/importexcel/import_add.php"><i class="layui-icon">&#xe614;</i>导入导出</a>
    </li>
      <?;} ?>



  
  
</ul>


</div>